package com.lz.fruitday.adapter;


import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.lz.fruitday.R;
import com.lz.fruitday.bean.CommonBean;

import java.util.List;

/**
 * Created by liuZhi
 * 2015/10/21
 */
public class KindLvAdapter extends AppBaseAdapter<CommonBean> {
    public KindLvAdapter(List<CommonBean> list, Context context) {
        super(list, context);
    }
    @Override
    public ViewHolder getViewHolder(int position, View convertView, ViewGroup parent) {
        ViewHolder vh=ViewHolder.get(context,convertView,parent, R.layout.item_kind_listview_layout);
        TextView tvName= (TextView) vh.findViewById(R.id.tv_name);
        tvName.setText(list.get(position).getName());
        return vh;
    }
}
